#include <QtGui/QBitmap>
#include <QtGui/QRegion>

#include "checkupdates.h"

CheckUpdates::CheckUpdates(QWidget *parent)
    : QWidget(parent)
{
	ui.setupUi(this);
	setWindowFlags(Qt::SplashScreen);
}

CheckUpdates::~CheckUpdates()
{
}

void CheckUpdates::paintEvent( QPaintEvent* event ){

	QPainter painter( this );

	QBitmap bitmap(".//img/wndUpdates.PNG" );
	QRegion region( bitmap);
	QRect boundRect = region.boundingRect();

	setMask( region.boundingRect());

	ui.frameUpdates->setStyleSheet( QString::fromUtf8( "#frameUpdates{ background-image:url(:/mainWnd/img/wndUpdates.PNG)}" ) );
}
